#ifndef _LIBS_H
#define _LIBS_H

//win7 console: couldn't output the UTF-8 string
//so convert utf-8 to gb2312 for debugging
extern void FWRITE_IGNORE(char* buf, int count);
//max convert 128 words
extern int u8_to_gb2312(char* in, int in_len, char* out, int* out_len);

//gb2312 to utf8, should free memory by caller
extern char* to_utf(char* in, int in_len, int* out_len);

#endif
